<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta name="copyright" content=
    "Copyright (c) IBM Corporation and others 2006, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css" />
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type=
    "text/javascript">
</script>
    <title>
      Filtering in Java Views
    </title>

  </head>
  <body>
    <h1>
      Filtering in Java Views
    </h1>
    <h2>
      Applying View Filters
    </h2>
    <p>
      All Java views allow to filter the displayed Java elements. The set of available filters
      depends on the view.
    </p>

    <p>
      To filter elements:
    </p>
    <ol>
      <li>On the view toolbar, click the <strong>Menu</strong> button and choose
      <strong>Filters...</strong>.
      </li>
      <li>Select or clear the filters that you want to apply to the view (read <strong>Filter
      description</strong> to learn about the selected filter's functionality).
      </li>

      <li>Optionally, you can select patterns for filtering the view:
        <ul>
          <li>Select the <strong>Name filter patterns</strong> checkbox at the top of the dialog.
          </li>
          <li>In the text field below, specify the desired patterns (names matching one of the
          patterns will be hidden).
          </li>
        </ul>
      </li>
    </ol>

    <h2>
      Filtering Members
    </h2>
    <p>
      Several Java views (e.g. <strong>Outline</strong>, <strong>Type Hierarchy</strong>,
      <strong>Members</strong>) offer filtering of members (fields, types and methods). The filters
      are available as toolbar buttons or as view menu items, depending on the view. There are 3
      member filters:
    </p>
    <ul>

      <li>
        <span class="control">Hide Fields</span>: when activated, this filter causes all fields to
        be removed from the view.
      </li>
      <li>
        <span class="control">Hide Static Fields and Methods</span>: when activated, this filter
        causes all static members to be removed from the view.
      </li>
      <li>
        <span class="control">Hide Non-Public Members</span>: when activated, this filter causes
        all non-public members to be removed from the view.
      </li>

    </ul>Additionally, the <strong>Package Explorer</strong> view can display or hide all elements
    inside compilation units.
    <p>
      To show or hide members in the <strong>Package Explorer</strong> view, select or clear the
      <span class="control">Show members in Package Explorer</span> checkbox in the <a class=
      "command-link" href=
      'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.AppearancePreferencePage)")'>
      <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt=
      "Opens the Appearance preference page" /> <span class="control">Java &gt;

      Appearance</span></a> preference page.
    </p>
    <h2>
      Filtering Working Sets
    </h2>
    <p>
      Several Java views (e.g. <strong>Package Explorer</strong>, <strong>Type Hierarchy</strong>)
      offer to filter by one or more working sets. The filters are available in the view menu. Only
      the elements that are contained in the selected working sets are shown in the view.
    </p>

      <h3 class="related">Related concepts</h3>
      <a href="../concepts/concept-java-project.htm">Java projects</a><br />
      <a href="../../org.eclipse.platform.doc.user/concepts/cworkset.htm">Working sets</a>

      <h3 class="related">Related references</h3>
      <a href="../reference/views/ref-view-package-explorer.htm">Package Explorer</a>
  </body>
</html>
